package net.cyue.homework.student.management.entity;


import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Positive;

import java.util.Date;

public class Student {
    @Positive
    private Integer studentId;
    @NotBlank
    private String name;
    @NotBlank
    private String gender;
    @Positive
    private Integer majorId;
    private Integer classId;
    private Integer jobId;
    private String phone;
    private Date birthday;

    public Student() {}
	public Student(
		Integer studentId,
		String name,
		String gender,
		Integer majorId,
		Integer classId,
		Integer jobId,
		String phone,
		Date birthday
	) {
		super();
		this.studentId = studentId;
		this.name = name;
		this.gender = gender;
		this.majorId = majorId;
		this.classId = classId;
		this.jobId = jobId;
		this.phone = phone;
		this.birthday = birthday;
	}
	public Integer getStudentId() {
		return this.studentId;
	}
	public void setStudentId(Integer studentId) {
		this.studentId = studentId;
	}
	public String getName() {
		return this.name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getGender() {
		return this.gender;
	}
	public void setGender(String gender) {
		this.gender = gender;
	}
	public Integer getMajorId() {
		return this.majorId;
	}
	public void setMajorId(Integer majorId) {
		this.majorId = majorId;
	}
	public Integer getClassId() {
		return this.classId;
	}
	public void setClassId(Integer classId) {
		this.classId = classId;
	}
	public Integer getJobId() {
		return this.jobId;
	}
	public void setJobId(Integer jobId) {
		this.jobId = jobId;
	}
	public String getPhone() {
		return this.phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public Date getBirthday() {
		return this.birthday;
	}
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
    
    
}


